/******************************************************************************
 * @Filename     : system_udk.h
 *
 * @Version      : V1.0
 * @Subversion   : $
 * @Last modified: 02/20/2020 9:26:12
 * @Modified by  : Mxy
 *
 * @Brief        : SKY2412 series system clock definition file
 *
 * Copyright (C) 2020 SKYRELAY Technology co.,Ltd All rights reserved.
 *****************************************************************************/

#ifndef __SYSTEM_SKY2412_H__
#define __SYSTEM_SKY2412_H__


#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
/*----------------------------------------------------------------------------
  Define SYSCLK
 *----------------------------------------------------------------------------*/
#define WDT_CLK         32768
#define RTC_CLK         32768

#define ROM_SYS_CLK     40000000
#define ROM_CPU_CLK     40000000
#define ROM_PCLK        40000000
										  
#define XIP_SYS_CLK     20000000
#define XIP_CPU_CLK     20000000
#define XIP_PCLK        20000000

//void Set_SysClk(uint32_t u32Val);
//uint32_t SysGet_AHBFreq(void);
//uint32_t SysGet_APBFreq(void);

void Sys_RESET(uint32_t peripheral);
void Clk_ENABLE(uint32_t peripheral);
void Clk_DISABLE(uint32_t peripheral);
	

#ifdef __cplusplus
}
#endif

#endif   //__SYSTEM_SKY2412_H__

/*** (C) COPYRIGHT 2020 SKYRELAY Technology co.,Ltd ***/
